package main

import (
	"chat/router"
	"chat/utils"
	"fmt"
	"github.com/spf13/viper"
)

func main() {
	utils.Init()
	r := router.Router()
	err := r.Run(":" + viper.GetString("server.port"))
	if err != nil {
		panic(err)
	}
	fmt.Println("服务启动成功")
}
